﻿using Core.CSV;
using Game.WeaponComponent;

namespace Game {
    public class DoubleSpeedEffect : WeaponEffect {
        public DoubleSpeedEffect(TBWeaponEffectConfig config) : base(config) { }

        protected override void onAttach() {
            if (mAttachCombinant.Has<NormalMeleeAttackComponent>()) {
                mAttachCombinant.Get<NormalMeleeAttackComponent>().Speed /= 10;
            }
        }
    }
}